import json

import pytest,yamail
def yj(f):
    mya=yamail.SMTP(user='1391277593@qq.com',password='npphtjsegwjqhiae',host='smtp.qq.com')
    mya.send(to='1391277593@qq.com',subject='测试报告',contents='请查收',attachments=f)
if __name__ == '__main__':
    pytest.main(['Test_case.py','-s','--html=min.html'])
    yj(['min.html'])